package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.example.bean.Power;
import org.example.mapper.PowerMappper;
import org.example.service.PowerSerivce;
import org.example.util.JsonResult;
import org.example.util.ResultTool;
import org.springframework.stereotype.Service;

/**
 * @Auther:Liu
 * @Testname:PowerServiceImpl
 * @Date:2025/9/17 15:09
 */
@Service
public class PowerServiceImpl extends ServiceImpl<PowerMappper, Power> implements PowerSerivce {
    @Resource
    private PowerMappper powerMappper;
    @Override
    public JsonResult findPowersByStudentId(String studentId) {
        return ResultTool.success(powerMappper.findPowersByStudentId(studentId));
    }
}
